import java.util.Scanner;
class Book{
    String name;
    int num;
    double price;
    static int all = 0;

    public Book(String name, double price){
        this.name = name;
        this.price = price;
        this.num = ++all;
    }
    public void display(){
        System.out.println("书名:" + name + ",书号:" + num + ",书价:" + price);
    }
}
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Book[] book = new Book[10];
        int t = 0;

        while (scanner.hasNextLine()){
            String str = scanner.nextLine();
            String[] result = str.split(" ");
            String name = result[0];
            double price = Double.parseDouble(result[1]);
            book[t] = new Book(name,price);
            book[t].display();
            t++;
        }
        System.out.println("图书总册数为:" + Book.all);
    }
}